package com.imooc.user.service;

import com.imooc.user.dataobject.UserInfo;
import com.imooc.user.repository.UserInfoRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * UserServiceImpl
 *
 * @author leon.cheng
 * @date 2018/12/18 16:55
 **/
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserInfoRepository repository;
    @Override
    public UserInfo findByOpenid(String openid) {
        return repository.findByOpenid(openid);
    }
}
